'''
Created on 21 Dec 2010

@author: yusuf
'''
import ussd_api, threading

class Session(threading.Thread):
    
    def __init__(self,connection ,msisdn):
        '''
        Constructor
        '''
        threading.Thread.__init__(self)
        self.msisdn = msisdn
        self.connection = connection
        self.mainMenu = "Hello World"
    def run ( self ):
        pass
    
    def respondMain(self, pdu):
         pdu.setPdu("USSRR");
         pdu.setString(self.mainMenu);
         self.connection.send(pdu);
         
    def respond(self, pdu):
         pdu.setPdu("USSRR");
         pdu.setString("Hello again");
         self.connection.send(pdu);